已经有数据库,做主从复制 服务器 备注 数据库 192.168.137.6 Master 有2个数据库,不同步mysql数据库 192.168.137.3 Slave 没有数据库 Master操作 [mysqld] #############better########### log-bin = / ...
分类:
数据库 时间:
2021-04-27 14:50:54
阅读次数:
0
1.在root权限下登录mysql 2.进入mysql库 mysql>use mysql 3.查看root用户权限 mysql>select User,Host,plugin from user; 4.将root用户的auth_sock改为mysql_native_password mysql>up ...
分类:
数据库 时间:
2021-04-27 14:42:37
阅读次数:
0
MySQL spring.datasource.url=jdbc:mysql://localhost:3306/twitter_test?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8spring. ...
分类:
移动开发 时间:
2021-04-27 14:38:30
阅读次数:
0
环境变量(environment variable) 环境变量是在bash shell 的一个特性,用来存储系统信息、临时数据以及配置信息。在bash shell中,环境变量可分为两类:全局变量和局部变量。 全局变量: 作用范围:当前shell进程及其子shell进程 查看全局环境变量: 查看所有全 ...
分类:
系统相关 时间:
2021-04-27 14:34:01
阅读次数:
0
ON DUPLICATE KEY UPDATE作用 先声明一点,ON DUPLICATE KEY UPDATE为Mysql特有语法,这是个坑语句的作用,当insert已经存在的记录时,执行Update 用法 什么意思?举个例子:user_admin_t表中有一条数据如下 表中的主键为id,现要插入一 ...
分类:
其他好文 时间:
2021-04-27 14:30:19
阅读次数:
0
1 Could not execute Write_rows event on table cs3.test01; Duplicate entry ‘7‘ for key ‘test01.PRIMARY‘ 1.1 主库操作 SHOW BINARY LOGS; PURGE BINARY LOGS TO ...
分类:
数据库 时间:
2021-04-27 14:28:23
阅读次数:
0
linux上安装Docker,并解决速度太慢 使用国内阿里云镜像加速安装 1.卸载旧版本 sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-la ...
分类:
其他好文 时间:
2021-04-27 14:25:42
阅读次数:
0
mysql由5.0升级至8.0 1:jar包的变换 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.1</version> </dependency> 2 ...
分类:
数据库 时间:
2021-04-27 14:19:35
阅读次数:
0
The-text-Compatibility-of-Linux-and-Windows 1. 字符编码问题: Linux系统与windows系统的默认编码不同。 1.1 Linux系统下查看文件编码命令file 1.2 文件字符编码转换 1.2.1 文件内容的字符编码转换: iconv 1.2.2 ...
解释器 python / python3 使用Python2.x解释器 S Python xxx.py 使用Python3.x解释器 S Python3 xxx.py 交互式运行 Python 程序 交互式:问答方式,输入一个语句,里面有结果返回 MySQL提供交互式命令行 进入交互式命令:Pyth ...
分类:
编程语言 时间:
2021-04-27 14:11:57
阅读次数:
0